<?php
/**
 * Created by PhpStorm.
 * User: godjarvis
 * Date: 2020/08/05
 * Time: 16:19
 */

namespace App\Http\Requests\Product;

use Fresh\Annotation\RequestRule;
use Fresh\Mvc\FormRequest;
use Fresh\Annotation\RequestParam;

class ShareRequest extends FormRequest
{
    /**
     * @RequestParam()
     * @var string
     */
    public $pnid;

    /**
     * @RequestParam()
     * @var string
     */
    public $pid;

    /**
     * @RequestParam(default="1")
     * @RequestRule(value="required")
     * @var string
     */
    public $type;

    /**
     * @RequestParam(default="1")
     * @RequestRule(value="required")
     * @var string
     */
    public $location;
}
